﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="duty_edit.aspx.cs" Inherits="AnyOffice.general.system.attend.duty_edit" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>编辑排班类型</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<script src="/aspnet_client/core/function.js"></script>
		<script Language="JavaScript">
function CheckForm()
{
   if(document.Form1.txtDutyName.value=="")
   {
	alert("排班类型说明不能为空！");
	document.Form1.txtDutyName.focus();
    return (false);
   }
   
    if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime1.value) && (document.Form1.txtDutyTime1.value != ''))
   {
	 alert("第一次登记时间不正确！");
	 document.Form1.txtDutyTime1.focus();
	 return (false);
   }
   
   if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime2.value) && (document.Form1.txtDutyTime2.value != ''))
   {
	 alert("第二次登记时间不正确！");
	 document.Form1.txtDutyTime2.focus();
	 return (false);
   }
   
   if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime3.value) && (document.Form1.txtDutyTime3.value != ''))
   {
	 alert("第三次登记时间不正确！");
	 document.Form1.txtDutyTime3.focus();
	 return (false);
   }
   
   if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime4.value) && (document.Form1.txtDutyTime4.value != ''))
   {
	 alert("第四次登记时间不正确！");
	 document.Form1.txtDutyTime4.focus();
	 return (false);
   }
   
   if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime5.value) && (document.Form1.txtDutyTime5.value != ''))
   {
	 alert("第五次登记时间不正确！");
	 document.Form1.txtDutyTime5.focus();
	 return (false);
   }
   
   if(!checkIsDateTime('1990-1-1 ' + document.Form1.txtDutyTime6.value) && (document.Form1.txtDutyTime6.value != ''))
   {
	 alert("第六次登记时间不正确！");
	 document.Form1.txtDutyTime6.focus();
	 return (false);
   }
   return (true);
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<asp:Panel id="pnlMain" runat="server">
				<TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
					<TR>
						<TD class="Big"><IMG src="/images/menu/attendance.gif" align="absMiddle"><SPAN class="big3"> 编辑排班类型</SPAN>
						</TD>
					</TR>
				</TABLE>
				<BR>
				<TABLE title="提示信息框" style="BORDER-RIGHT: #ff6633 1px dashed; BORDER-TOP: #ff6633 1px dashed; FONT-WEIGHT: bold; BORDER-LEFT: #ff6633 1px dashed; COLOR: #ff6633; BORDER-BOTTOM: #ff6633 1px dashed; BACKGROUND-COLOR: #eeeeee"
					cellSpacing="4" cellPadding="4" width="330" align="center" border="0">
					<TR>
						<TD>说明：上下班登记时间范围在 00:00:00 至 23:59:59 之间，请按时间顺序指定</TD>
					</TR>
				</TABLE>
				<BR>
				<TABLE class="small" cellSpacing="1" cellPadding="2" width="500" align="center" bgColor="#000000"
					border="0">
					<TR>
						<TD class="TableData" noWrap>排班类型说明：</TD>
						<TD class="TableData"><INPUT class="BigInput" id="txtDutyName" type="text" maxLength="100" size="25" name="txtDutyName"
								runat="server">
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>第1次登记：</TD>
						<TD class="TableData"><INPUT class="BigInput" id="txtDutyTime1" type="text" maxLength="8" size="8" name="txtDutyTime1"
								runat="server">&nbsp;
							<SELECT class="BigSelect" id="sltDutyType1" name="sltDutyType1" runat="server">
								<OPTION value="1">上班</OPTION>
								<OPTION value="2">下班</OPTION>
							</SELECT>
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>第2次登记：</TD>
						<TD class="TableData"><INPUT class="BigInput" id="txtDutyTime2" type="text" maxLength="8" size="8" name="txtDutyTime2"
								runat="server">&nbsp;
							<SELECT class="BigSelect" id="sltDutyType2" name="sltDutyType2" runat="server">
								<OPTION value="1">上班</OPTION>
								<OPTION value="2">下班</OPTION>
							</SELECT>
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>第3次登记：</TD>
						<TD class="TableData"><INPUT class="BigInput" id="txtDutyTime3" type="text" maxLength="8" size="8" name="txtDutyTime3"
								runat="server">&nbsp;
							<SELECT class="BigSelect" id="sltDutyType3" name="sltDutyType3" runat="server">
								<OPTION value="1">上班</OPTION>
								<OPTION value="2">下班</OPTION>
							</SELECT>
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap height="28">第4次登记：</TD>
						<TD class="TableData" height="28"><INPUT class="BigInput" id="txtDutyTime4" type="text" maxLength="8" size="8" name="txtDutyTime4"
								runat="server">&nbsp;
							<SELECT class="BigSelect" id="sltDutyType4" name="sltDutyType4" runat="server">
								<OPTION value="1">上班</OPTION>
								<OPTION value="2">下班</OPTION>
							</SELECT>
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>第5次登记：</TD>
						<TD class="TableData"><INPUT class="BigInput" id="txtDutyTime5" type="text" maxLength="8" size="8" name="txtDutyTime5"
								runat="server">&nbsp;
							<SELECT class="BigSelect" id="sltDutyType5" name="sltDutyType5" runat="server">
								<OPTION value="1">上班</OPTION>
								<OPTION value="2">下班</OPTION>
							</SELECT>
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>第6次登记：</TD>
						<TD class="TableData"><INPUT class="BigInput" id="txtDutyTime6" type="text" maxLength="8" size="8" name="txtDutyTime6"
								runat="server">&nbsp;
							<SELECT class="BigSelect" id="sltDutyType6" name="sltDutyType6" runat="server">
								<OPTION value="1">上班</OPTION>
								<OPTION value="2">下班</OPTION>
							</SELECT>
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>公休日：</TD>
						<TD class="TableData">
							<asp:CheckBoxList id="cblGeneral" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"
								RepeatColumns="5">
								<asp:ListItem Value="1">星期一</asp:ListItem>
								<asp:ListItem Value="2">星期二</asp:ListItem>
								<asp:ListItem Value="3">星期三</asp:ListItem>
								<asp:ListItem Value="4">星期四</asp:ListItem>
								<asp:ListItem Value="5">星期五</asp:ListItem>
								<asp:ListItem Value="6">星期六</asp:ListItem>
								<asp:ListItem Value="0">星期日</asp:ListItem>
							</asp:CheckBoxList></TD>
					</TR>
					<TR class="TableControl" align="center">
						<TD noWrap colSpan="2"><INPUT class="BigButton" onclick="return CheckForm();" type="submit" value="确定">&nbsp;&nbsp;
							<INPUT class="BigButton" onclick="location='duty.aspx'" type="button" value="返回">
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
